package com.lyj.judge.service.imple;

import com.lyj.api.domain.dto.JudgeSubmitDTO;
import com.lyj.api.domain.vo.UserQuestionResultVO;
import com.lyj.judge.domain.SandBoxExecuteResult;
import com.lyj.judge.mapper.UserSubmitMapper;
import com.lyj.judge.service.JudgeService;
import com.lyj.judge.service.SandboxPoolService;
import com.lyj.judge.service.SandboxService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LIUYANJIAO
 * Date: 2025-11-03
 * Time: 20:05
 */
@Service
@Slf4j
public class JudgeServiceImpl implements JudgeService {
    //沙箱服务
    @Resource(name = "sandboxServiceImpl")
    private SandboxService sandboxService;

    @Resource(name = "sandboxPoolServiceImpl")
    private SandboxPoolService sandboxPoolService;

    @Autowired
    private UserSubmitMapper userSubmitMapper;

    //入口方法
    @Override
    public UserQuestionResultVO doJudgeJavaCode(JudgeSubmitDTO judgeSubmitDTO) {
        log.info("----------判题逻辑开始-----------");
        SandBoxExecuteResult sandBoxExecuteResult =
    }
}
